package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商家账务表
 * </p>
 *
 * @author chenxuebin
 * @since 2020-07-22
 */
@TableName("t_saccount")
public class Saccount extends Model<Saccount> {

    private static final long serialVersionUID = 1L;

	@TableId(value="sid", type= IdType.AUTO)
	private Long sid;

	private String sname;

    /**
     * 可用金额#可用金额=可提现金额=累计充值余额+累计销售额-押金-待入账销售额-消耗金额-累计提现额-营销金额&
     */
	private BigDecimal amount;
    /**
     * 累计销售额#累计销售额=累计(销售额=单价*数量)&
     */
	@TableField("sale_amount")
	private BigDecimal saleAmount;
    /**
     * 营销金额#营销金额=营销成本=积分抵扣+会员卡抵扣+优惠券抵扣+红包抵扣+快递费用&
     */
	private BigDecimal mamount;
    /**
     * 商家总优惠金额
     */
	private BigDecimal youhui;
    /**
     * 累计佣金
     */
	private BigDecimal fanli;
    /**
     * 待入账佣金&
     */
	private BigDecimal fanliing;
    /**
     * 总金额#总金额=不可用金额+可用金额=累计充值余额+累计销售额
     */
	private BigDecimal total;
    /**
     * 冻结资金=押金&
     */
	private BigDecimal freeze;
    /**
     * 累计充值余额&
     */
	@TableField("charge_amount")
	private BigDecimal chargeAmount;
    /**
     * 累计提现额&
     */
	private BigDecimal withdraw;
    /**
     * 不可用金额#不可用金额=待入账销售额+冻结资金&
     */
	@TableField("unuse_amount")
	private BigDecimal unuseAmount;
    /**
     * 消耗金额#消耗金额=广告费用=推广费用&
     */
	private BigDecimal consume;
    /**
     * 总退款额
     */
	private BigDecimal refund;
    /**
     * 积分
     */
	private BigDecimal jifen;
    /**
     * 是否独立支付
     */
	@TableField("is_independent_pay")
	private Integer isIndependentPay;
    /**
     * 启用状态&
     */
	private Integer state;
    /**
     * 手机号&
     */
	private String phone;
	private Long version;
    /**
     * 累计短信充值费用
     */
	@TableField("smsmout_total")
	private BigDecimal smsmoutTotal;
    /**
     * 短信余额
     */
	private BigDecimal smsmout;
    /**
     * 剩余短信条数
     */
	private Integer smstotal;
    /**
     * 短信价格
     */
	private BigDecimal smsprice;
	private Long mid;
	private Long mpid;
	private Long leagueid;
	private Long uid;
	private String unionid;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getSaleAmount() {
		return saleAmount;
	}

	public void setSaleAmount(BigDecimal saleAmount) {
		this.saleAmount = saleAmount;
	}

	public BigDecimal getMamount() {
		return mamount;
	}

	public void setMamount(BigDecimal mamount) {
		this.mamount = mamount;
	}

	public BigDecimal getYouhui() {
		return youhui;
	}

	public void setYouhui(BigDecimal youhui) {
		this.youhui = youhui;
	}

	public BigDecimal getFanli() {
		return fanli;
	}

	public void setFanli(BigDecimal fanli) {
		this.fanli = fanli;
	}

	public BigDecimal getFanliing() {
		return fanliing;
	}

	public void setFanliing(BigDecimal fanliing) {
		this.fanliing = fanliing;
	}

	public BigDecimal getTotal() {
		return total;
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	public BigDecimal getFreeze() {
		return freeze;
	}

	public void setFreeze(BigDecimal freeze) {
		this.freeze = freeze;
	}

	public BigDecimal getChargeAmount() {
		return chargeAmount;
	}

	public void setChargeAmount(BigDecimal chargeAmount) {
		this.chargeAmount = chargeAmount;
	}

	public BigDecimal getWithdraw() {
		return withdraw;
	}

	public void setWithdraw(BigDecimal withdraw) {
		this.withdraw = withdraw;
	}

	public BigDecimal getUnuseAmount() {
		return unuseAmount;
	}

	public void setUnuseAmount(BigDecimal unuseAmount) {
		this.unuseAmount = unuseAmount;
	}

	public BigDecimal getConsume() {
		return consume;
	}

	public void setConsume(BigDecimal consume) {
		this.consume = consume;
	}

	public BigDecimal getRefund() {
		return refund;
	}

	public void setRefund(BigDecimal refund) {
		this.refund = refund;
	}

	public BigDecimal getJifen() {
		return jifen;
	}

	public void setJifen(BigDecimal jifen) {
		this.jifen = jifen;
	}

	public Integer getIsIndependentPay() {
		return isIndependentPay;
	}

	public void setIsIndependentPay(Integer isIndependentPay) {
		this.isIndependentPay = isIndependentPay;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public BigDecimal getSmsmoutTotal() {
		return smsmoutTotal;
	}

	public void setSmsmoutTotal(BigDecimal smsmoutTotal) {
		this.smsmoutTotal = smsmoutTotal;
	}

	public BigDecimal getSmsmout() {
		return smsmout;
	}

	public void setSmsmout(BigDecimal smsmout) {
		this.smsmout = smsmout;
	}

	public Integer getSmstotal() {
		return smstotal;
	}

	public void setSmstotal(Integer smstotal) {
		this.smstotal = smstotal;
	}

	public BigDecimal getSmsprice() {
		return smsprice;
	}

	public void setSmsprice(BigDecimal smsprice) {
		this.smsprice = smsprice;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getLeagueid() {
		return leagueid;
	}

	public void setLeagueid(Long leagueid) {
		this.leagueid = leagueid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	@Override
	protected Serializable pkVal() {
		return this.sid;
	}

	@Override
	public String toString() {
		return "Saccount{" +
			"sid=" + sid +
			", amount=" + amount +
			", saleAmount=" + saleAmount +
			", mamount=" + mamount +
			", youhui=" + youhui +
			", fanli=" + fanli +
			", fanliing=" + fanliing +
			", total=" + total +
			", freeze=" + freeze +
			", chargeAmount=" + chargeAmount +
			", withdraw=" + withdraw +
			", unuseAmount=" + unuseAmount +
			", consume=" + consume +
			", refund=" + refund +
			", jifen=" + jifen +
			", isIndependentPay=" + isIndependentPay +
			", state=" + state +
			", phone=" + phone +
			", version=" + version +
			", smsmoutTotal=" + smsmoutTotal +
			", smsmout=" + smsmout +
			", smstotal=" + smstotal +
			", smsprice=" + smsprice +
			", mid=" + mid +
			", mpid=" + mpid +
			", leagueid=" + leagueid +
			", uid=" + uid +
			", unionid=" + unionid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
